from dataclasses import dataclass
from ..models.enums.app_http_code_enum import AppHttpCodeEnum


# 业务异常
@dataclass
class CustomerException(Exception):
    app_http_code_enum: AppHttpCodeEnum

    def get_app_http_code_enum(self):
        return self.app_http_code_enum
